﻿@{
    ViewBag.Title = "OutcomView";
}

@using WeiXinWeb.Models

<div data-role="page">
    <div data-role="header" data-theme="b">
        <a href="#" data-rel="back" data-icon="back" data-theme="e">返回</a>
        <h1>出口列表</h1>
    </div>
    <div data-role="content">
        <ul data-role="listview"  data-inset="true">
            @{
                <li data-role="list-divider" data-theme="b">今天:@DateTime.Now.ToShortDateString()</li>
                var address = (IEnumerable<object>)ViewBag.address;
                if(@address.Count()>0)
                { 
                    foreach (var item in address)
                    {
                        <li>
                            <a href="/Reservation/OutcomRelateView?md=@item.GetType().GetProperty("adress").GetValue(item, null)" target="_self">@item.GetType().GetProperty("adress").GetValue(item, null)</a>
                            <span class="ui-li-count">@item.GetType().GetProperty("count").GetValue(item, null)@Html.Raw("车")</span>
                        </li>
                    }
                }
                else
                {
                    <li>没有预约信息</li>

                }
                <li data-role="list-divider" data-theme="b">明天:@DateTime.Now.AddDays(1).ToShortDateString()</li>
                var tomaddress = (IEnumerable<object>)ViewBag.tomaddress;
                if (tomaddress.Count() > 0)
                {
                    foreach (var item in tomaddress)
                    {
                        <li>
                            <a href="/Reservation/OutcomRelateView?md=@item.GetType().GetProperty("adress").GetValue(item, null)" target="_self">@item.GetType().GetProperty("adress").GetValue(item, null)</a>
                            <span class="ui-li-count">@item.GetType().GetProperty("count").GetValue(item, null)@Html.Raw("车")</span>
                        </li>
                    }
                }
                else
                { 
                   <li>没有预约信息</li>
                }
            }
        </ul>
    </div>
</div>
